package exception;

public class Except1 {
		public static void main(String[] args) throws Exception {
			int j=123;
			System.out.println("hi harry");
			sum();
//			int i = 2/0;
		}

		private static void sum() throws Exception {
			System.out.println("sum start ");
			int j=123;
//			try{
				errorm();
//			}
//			catch(Exception e)
//			{
//				e.printStackTrace();
////				System.out.println("errorm  end");
////				System.out.println("hi");
//			}
			
			System.out.println("sum end ");
		}
		
	
		private static void errorm() throws GoliException{
			System.out.println("errorm  start " );
			String str = null;
			throw new GoliException("hi");
//				str.equals("abc");
//			System.out.println("errorm  end");
			
		}
}
